﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.VisualStudio.Project;
using Microsoft.VisualStudio.Shell.Interop;
using System.Diagnostics;
using Microsoft.VisualStudio;
using Microsoft.VisualStudio.TextManager.Interop;
using System.ComponentModel.Composition;
using Microsoft.VisualStudio.Editor;
using Microsoft.VisualStudio.Utilities;
using Microsoft.VisualStudio.ComponentModelHost;
using Microsoft.VisualStudio.Text.Editor;

namespace PSLib.WOWAddon.Base
{
	class WOWAddonProjectFileNode : FileNode
	{
		internal WOWAddonProjectFileNode(ProjectNode root, ProjectElement e)
			: base(root, e)
		{

		}

		//protected override void DoDefaultAction()
		//{
		//    FileDocumentManager manager = this.GetDocumentManager() as FileDocumentManager;
		//    Debug.Assert(manager != null, "Could not get the FileDocumentManager");
			
		//    Guid viewGuid = VSConstants.LOGVIEWID_Code;
		//    IVsWindowFrame frame;
		//    manager.Open(false, false, viewGuid, out frame, WindowFrameShowAction.Show);
		//    object docView;
		//    frame.GetProperty((int)__VSFPROPID.VSFPROPID_DocView, out docView);
		//    IVsCodeWindow codeWindow = docView as IVsCodeWindow;
		//    IVsTextView textView = null;
		//    codeWindow.GetPrimaryView(out textView);
		//    IComponentModel componentModel = (IComponentModel)GetService(typeof(SComponentModel));
		//    IWpfTextView wpfTextView = componentModel.GetService<IVsEditorAdaptersFactoryService>().GetWpfTextView(textView);
		//    wpfTextView.Properties.AddProperty("WOWAddonProjectFileNode", "Was here !!!");
		//}
	}
}
